<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title></title>
    <script src="../../common/vue2/vue.js"></script>
  </head>
  <body>
    <div id="app">
      <tab-a>        
      </tab-a>

    
    </div>

    <script type="text/javascript">
      var tabA = {
        data() {
          return {
            count: 0,
          };
        },
        components: {
          
        },
        template: `<div>tab A
					<button @click='clickMe'>点我{{count}}</button    
					</div>`,
        methods: {
          clickMe() {
            this.count++;
          },
        },
      };

     
      var app = new Vue({
        el: "#app",
        data: {
          msg: "hello,Vue",
        },
        components: {
          "tab-a": tabA 
        },
      });
    </script>
  </body>
</html>
